Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[New] add TypeScript types #3097

Open
wants to merge 6 commits into
base: main
Choose a base branch
from
Open

[New] add TypeScript types #3097

wants to merge 6 commits into from

Conversation

G-Rath
Copy link
Contributor

@G-Rath G-Rath commented Nov 8, 2024

For now I've just typed these out manually based on what we're using internally - while it would be good to have some tests at some point, I'm hoping/recommending not blocking on that for now as I think the types are small enough to be easy to maintain manually for the time being.

Resolves #3090

Copy link

codecov bot commented Nov 8, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 94.58%. Comparing base (a20d843) to head (5fc6cd3).

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #3097      +/-   ##
==========================================
- Coverage   95.28%   94.58%   -0.70%     
==========================================
  Files          83       83              
  Lines        3584     3584              
  Branches     1252     1252              
==========================================
- Hits         3415     3390      -25     
- Misses        169      194      +25     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.


🚨 Try these New Features:

@ljharb
Copy link
Member

ljharb commented Nov 8, 2024

Can we add a tsc run, at least?

index.d.ts Outdated Show resolved Hide resolved
index.d.ts Show resolved Hide resolved
@G-Rath G-Rath force-pushed the add-types branch 2 times, most recently from 1713c9d to 58d17dc Compare November 8, 2024 17:25
@G-Rath
Copy link
Contributor Author

G-Rath commented Nov 8, 2024

Can we add a tsc run, at least?

Done - note that it requires using typescript v5 since types like @types/node require that version, which led to a weird "works locally but not in CI", but I think I've got that resolved and should be good enough for now 🤞

.github/workflows/node-4+.yml Outdated Show resolved Hide resolved
package.json Show resolved Hide resolved
Copy link

socket-security bot commented Nov 10, 2024

No dependency changes detected. Learn more about Socket for GitHub ↗︎

👍 No dependency changes detected in pull request

@G-Rath G-Rath requested a review from ljharb November 10, 2024 21:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

Could not find a declaration file for module 'eslint-plugin-import'
3 participants